﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BoriPeter.FitnessJournal8.Models
{
    public class Number : ModelBase
    {
        private int label;
        public int Label
        {
            get
            {
                return this.label;
            }

            set
            {
                this.label = value;
                NotifyOfPropertyChange("Label");
            }
        }

        private int name;
        public int Name
        {
            get
            {
                return this.name;
            }

            set
            {
                this.name = value;
                NotifyOfPropertyChange("Name");
            }
        }

        public Number(int _label, int _name) : base()
        {
            label = _label;
            name = _name;
        }

        private static List<Number> defaultList;
        public static List<Number> DefaultList
        {
            get
            {
                if (defaultList == null)
                {
                    defaultList = new List<Number>();
                    defaultList.Add(new Number(0, 0));
                    defaultList.Add(new Number(1, 1));
                    defaultList.Add(new Number(2, 2));
                    defaultList.Add(new Number(3, 3));
                    defaultList.Add(new Number(4, 4));
                    defaultList.Add(new Number(5, 5));
                    defaultList.Add(new Number(6, 6));
                    defaultList.Add(new Number(7, 7));
                    defaultList.Add(new Number(8, 8));
                    defaultList.Add(new Number(9, 9));
                }
                return defaultList;
            }
        }
    }
}
